package com.kehutong.applet.entity;

import com.kehutong.applet.enums.JumpType;
import org.coraframework.bean.valid.CheckField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

@Table(value="t_applet_navigation", comment="导航管理", idType = IDType.TIMESTAMP)
public class NavigationEntity extends Entity {

    private static final long serialVersionUID = 5171960658407950419L;

    protected NavigationEntity(String id) {
        super(id);
    }

    @Column(comment="导航图片")
    private String imgId;

    @CheckField("导航名称不能为空")
    @Column(comment="导航名称")
    private String name;

    @Column(comment = "跳转类型")
    private JumpType jumpType;

    @Column(comment = "跳转连接")
    private String url;

    @Column(comment = "小程序appid")
    private String appid;

    @Column(comment = "排序")
    private int sort;

    @Column(comment = "显示")
    private boolean showStatus;

    @Column(comment="逻辑删除")
    private boolean deleted;

    public String getImgId() {
        return imgId;
    }

    public void setImgId(String imgId) {
        this.imgId = imgId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public JumpType getJumpType() {
        return jumpType;
    }

    public void setJumpType(JumpType jumpType) {
        this.jumpType = jumpType;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getAppid() {
        return appid;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public int getSort() {
        return sort;
    }

    public void setSort(int sort) {
        this.sort = sort;
    }

    public boolean isShowStatus() {
        return showStatus;
    }

    public void setShowStatus(boolean showStatus) {
        this.showStatus = showStatus;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }


}
